import Messaage from "./Message.vue";
import Vue from "vue";

//通过 Vue 提供函数 extend，返回子类构造函数
let MessageConstructor =  Vue.extend(Messaage);

let loading = ()=>{
  let message = new MessageConstructor();
  message.$mount(document.createElement("div"));
  document.body.appendChild(message.$el);

  message.show = true;

}
export default loading;
